<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::any('wechat',   'WechatController@serve');
Route::prefix('zadmin')->namespace('Admin')->group(function(){
	Route::get('login',     'LoginController@login');
 	Route::any('logindo',   'LoginController@loginDo');
 	Route::middleware('checkAdmin')->group(function(){
		Route::resource('admins',	'AdminController');				
		Route::resource('threeds',		'ThreedController');
		Route::resource('role',			'RoleController');
		Route::resource('arts',	    	'ProductController');
		Route::resource('notices',		'NoticeController');
		Route::resource('exhibitions',	'ExhibitionController');
		
	
		Route::get('index',			'IndexController@index');
		Route::get('test',			'IndexController@test');
		Route::resource('menu',		'MenuController');
		Route::get('menu/permission/{id}','MenuController@menuPermission');
		Route::resource('permission',	  'PermissionController');
		Route::get('tplmsg/list','TplMsgController@index');

		Route::get('/','IndexController@dashboard');
	});
	

});

Route::prefix('wx')->group(function(){
	Route::get('notice/list','NoticeController@getList');
	Route::get('notice/{id}','NoticeController@show');
	Route::get('3d/{id}',    'ThreedController@show');
	Route::get('arts/list/{typeid}',  'ArtController@index');
	Route::get('arts/show/{id}',     'ArtController@show');
	Route::get('exhibition/list/{type}',  'ExhibitionController@index');
	Route::get('exhibition/show/{id}',  'ExhibitionController@show');
});





